from flask import current_app

from . import index_blue
from flask import render_template


# 根路由返回index模板数据
@index_blue.route('/')
def index():
    return render_template('news/index.html')


# 返回静态文件
@index_blue.route('/favicon.ico')
def favicon():
    return current_app.send_static_file('news/favicon.ico')
